// Fill out your copyright notice in the Description page of Project Settings.

#include "Isalong2.h"
#include "BuildingLandSnapLogic.h"




UBuildingLandSnapLogic::UBuildingLandSnapLogic()
{
	_useLogicTick = true;
}

void UBuildingLandSnapLogic::LogicTick(float DeltaTime)
{
	if (!_compOwner->GetIsPlaced())
	{
		if (_compOwner->ToolLandSnap())
		{
			_compOwner->SetCanPlace(true);
			return;
		}
		_compOwner->SetCanPlace(false);
		_compOwner->ToolGoBack();
	}
}
